package algorithm;

/**
 * @ClassName wangyi
 * @Author 刘正星
 * @Date 2021/6/18 下午10:49
 * @Description
 */

public class wangyi {

    static int handle(int num){

        int result = 0;
        int i = num;
        while (i!=0){
            i= i/10*10;
            System.out.println(i);
            result  = result*10 + num-i;
            i = i/10;
            num = num/10;
        }
        return result;
    }

    public static void main(String[] args) {

        System.out.println(handle(12354));
    }
}
